// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.audio.parameters;

import zombie.audio.FMODLocalParameter;
import zombie.characters.IsoGameCharacter;

public final class ParameterCharacterMovementSpeed extends FMODLocalParameter {
    private final IsoGameCharacter character;
    private ParameterCharacterMovementSpeed.MovementType movementType = ParameterCharacterMovementSpeed.MovementType.Walk;

    public ParameterCharacterMovementSpeed(IsoGameCharacter _character) {
        super("CharacterMovementSpeed");
        this.character = _character;
    }

    @Override
    public float calculateCurrentValue() {
        return (float)this.movementType.label;
    }

    public void setMovementType(ParameterCharacterMovementSpeed.MovementType _movementType) {
        this.movementType = _movementType;
    }

    public static enum MovementType {
        SneakWalk(0),
        SneakRun(1),
        Strafe(2),
        Walk(3),
        Run(4),
        Sprint(5);

        public final int label;

        private MovementType(int int1) {
            this.label = int1;
        }
    }
}
